﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="MyMsg.aspx.cs" Inherits="sysadmin_DL_Project__MyMsg" Title="PowerCreator Learning Management System" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Manage</title>
    <link href="../../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body class="bodymain">
    <form id="form1" runat="server" class="bodymain">
    <table width="868" border="0" cellspacing="0" cellpadding="0" align="left">
        <tr>
            
                       
            <td valign="top" align="left">
                <table width="660" border="0" cellspacing="0" cellpadding="0" class="tz">
                    <tr>
                        <td>
                           &nbsp;我的消息
                        </td>
                    </tr>
                </table>
                <br style="height: 8px; line-height: 8px" />
                <table width="660" border="0" cellspacing="0" cellpadding="0" class="tit2" id="Table1" runat="server">
                    
                    <tr>
                        <td valign="top">
                        
                        <span style=" color:red; ">&nbsp;未读<asp:Label ID="lbl_NoRead" runat="server"></asp:Label></span>
                        <hr />
                            <asp:Repeater ID="rpt_NoReadedNew" runat="server" OnItemCommand="rptNew_ItemCommand" OnItemDataBound="rpt_ItemDataBound">
            <HeaderTemplate>
            <table border="0" cellspacing="0" cellpadding="0" width="97%" align="center">
               <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <a href='OpenMsg.aspx?TP=2&type=2&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'><%#Eval("Title")%>
                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】 <asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("UserMsg_Id")%>'>删除</asp:LinkButton>
                       
                    </td>
<%--                    <td>
                        <%#Eval("NewPublishTime")%>
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("NewClickNum")%>
                        &nbsp;
                    </td>--%>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
                            <br style="height: 8px; line-height: 8px" runat="server" id="td_MyNoReadedNew" />
                            
                              <span style=" color:red; ">&nbsp;已读<asp:Label ID="lbl_Read" runat="server"></asp:Label></span>
                        <hr />
                            <asp:Repeater ID="rpt_ReadedNew" runat="server"  OnItemCommand="rptNew2_ItemCommand" OnItemDataBound="rpt2_ItemDataBound">
            <HeaderTemplate>
            <table border="0" cellspacing="0" cellpadding="0" width="97%" align="center">
               <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <a href='OpenMsg.aspx?TP=2&type=2&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'><%#Eval("Title")%>
                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】 <asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("UserMsg_Id")%>'>删除</asp:LinkButton>
                        
                    </td>
<%--                    <td>
                        <%#Eval("NewPublishTime")%>
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("NewClickNum")%>
                        &nbsp;
                    </td>--%>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
                            <br style="height: 8px; line-height: 8px" runat="server" id="td_MyReadedNew" />
                            
                             <span style=" color:red; ">&nbsp;已发消息<asp:Label ID="lbl_MyCreate" runat="server"></asp:Label></span>
                        <hr />
                            <asp:Repeater ID="rpt_MyCreateNew" runat="server" OnItemCommand="rptNew3_ItemCommand" OnItemDataBound="rpt3_ItemDataBound">
            <HeaderTemplate>
            <table border="0" cellspacing="0" cellpadding="0" width="97%" align="center">
               <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <a href='OpenMsg.aspx?TP=2&type=1&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'><%#Eval("Title")%>
                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】 <asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("UserMsg_Id")%>'>删除</asp:LinkButton>
                        
                    </td>
<%--                    <td>
                        <%#Eval("NewPublishTime")%>
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("NewClickNum")%>
                        &nbsp;
                    </td>--%>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
                            <br style="height: 8px; line-height: 8px" runat="server" id="td_MyCreateNew" />
                            
                            
                            
                            
                            
                            <span style=" color:red; ">&nbsp;写消息</span>
                        <hr />
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
            <tr>
                <th>
                    收件人：</th>
                <td>
                    <asp:RadioButton ID="rbtn_teacher" runat="server" GroupName="usertype" Text="教师"  AutoPostBack="True"  OnCheckedChanged="rdbtn_teacher_CheckedChanged"   /><asp:RadioButton ID="rbtn_student" runat="server" GroupName="usertype" Text="学生"  AutoPostBack="True"  OnCheckedChanged="rdbtn_student_CheckedChanged"   />
                </td>
               
            </tr>
            <tr runat="server" id="tr_student" visible="false">
                
                <th>
                    &nbsp;</th>
                <td>
                   <asp:DropDownList ID="ddl_Class" runat="server" OnSelectedIndexChanged="on_ddlClass_change" AutoPostBack="true" >
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddl_Student" runat="server">
                    </asp:DropDownList>
                    
                    </td>
               
            </tr>
            <tr runat="server" id="tr_teacher" visible="false">
                <th>
                     &nbsp;</th>
                <td>
                    <asp:DropDownList ID="ddl_teacher" runat="server">
                    </asp:DropDownList></td>
               
            </tr>
            <tr>
                <th>
                    标题：</th>
                <td>
                    <asp:TextBox ID="txt_Title" runat="server" Width="360px"></asp:TextBox>
                </td>
                
            </tr>
            <tr>
                <th>
                    内容：</th>
                <td>
                    <asp:TextBox ID="txt_Content" runat="server" Width="360px" TextMode="MultiLine" Rows="6"></asp:TextBox></td>
               
            </tr>
            
            <tr>
                
                <td colspan="2">
                    <asp:Button ID="btnSave" runat="server" Text="发送" CssClass="inputBotton2" OnClick="btnSave_Click" />
                </td>
            </tr>
            </table>
                        </td>
        </tr>
    </table>
           
    
            </td>
     </tr>
    <tr>
        <td align="right">
            <br style="height: 8px; line-height: 8px" />
        </td>
    </tr>
    </table>
    
    </form>
</body>
</html>